package cn.com.surker.enums.mes;

import cn.com.surker.enums.ICodeDescEnum;

/**
 * 构件的解析步骤
 * @author luotao
 * @date 2023/10/23
 */
public enum MemberFileStep implements ICodeDescEnum {
	FAIL_SPLIT(-2,"拆分图纸文件失败"),
	FAIL(-1,"解析失败"),
	WAIT(0,"上传成功,等待解析"),
	STARTING(1,"开始解析"),
	SPLIT_IMG(2,"拆分图纸成功"),
	SUCCESS(100,"解析成功");

	private final String description;

	private final Integer code;

	MemberFileStep(Integer code, String description) {
		this.description = description;
		this.code = code;
	}

	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public Integer getCode() {
		return code;
	}
}
